<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>

        //   |  表示或者
        //   []  表示或者   [a-z]   [A-Z]   [0-9]    [a-zA-Z0-9]

        // var reg = /a|b|c|d|e|f/;
        // console.log(reg.test('hello'));

        // var reg = /[a-zA-Z0-9]/;
        // console.log(reg.test(',.;1'));


        // 密码强弱验证

        // 小写
        var reg1 = /[a-z]/;
        var reg2 = /[A-Z]/;
        var reg3 = /[0-9]/;
        var f1 = reg1.test('qwe12A');
        var f2 = reg2.test('qwe12A');
        var f3 = reg3.test('qwe12A');



    </script>

</body>

</html>